import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: () => import("../views/Home.vue")
    },
    {
      path: '/about',
      name: 'about',
      component: () => import("../views/About.vue"),
      meta: { title: '关于' }
    },
    {
      path: '/article/:id',
      name: 'article',
      component: () => import("../components/ArticleInfo.vue"),
      meta: { title: '文章' }
    },
    {
      path: '/categroy/:id',
      name: 'category',
      component: () => import("../components/ArticleInfo.vue"),
      meta: { title: '文章' }
    },

  ]
})
